// src/utils/constants.ts

// 常量定义
export const APP_NAME = 'Platform HY';

export const ROUTES = {
  HOME: '/',
  LOGIN: '/login',
  DASHBOARD: '/dashboard',
  ACCOUNT: '/account',
  ACCOUNT_INFO: '/account/info',
  ACCOUNT_SUBPAGE: '/account/subpage',
};

export const API_ENDPOINTS = {
  LOGIN: '/api/login',
  REGISTER: '/api/register',
  USER_INFO: '/api/user',
};

export const STORAGE_KEYS = {
  AUTH_TOKEN: 'auth_token',
  USER_INFO: 'user_info',
};

export const MESSAGES = {
  LOGIN_SUCCESS: '登录成功',
  LOGIN_ERROR: '登录失败',
  LOGOUT_SUCCESS: '登出成功',
};